package xyz.xmh.pojo.response.file;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

/**
 * 2021/10/20 5:43 星期三<br/>
 * 创建文件夹响应类
 *
 * @author xuMingHai
 */
@Data
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true)
@JsonSubTypes(value = {
        @JsonSubTypes.Type(value = CreateFileResponse.class, name = "file"),
        @JsonSubTypes.Type(value = CreateFolderResponse.class, name = "folder")
})
public class CreateFolderResponse {

    /**
     * 父目录ID
     */
    private String parentFileId;

    /**
     * 文件类型
     */
    private String type;

    /**
     * 文件ID
     */
    private String fileId;

    /**
     * 域ID
     */
    private String domainId;

    /**
     * 阿里云盘ID
     */
    private String driveId;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 加密模式
     */
    private String encryptMode;
}
